
#ifndef cinput_h
#define cinput_h

#include <dinput.h>

#pragma comment (lib, "dinput8.lib")
#pragma comment (lib, "dxguid.lib")


class CInput
{
public:
							CInput(HWND);
							~CInput();
	bool					InitDirectInput(HWND);
	bool					InitKeyboard(HWND);

	bool					Update(HWND);
	bool					KeyPressed(int);

private:
	LPDIRECTINPUT8			m_pDIObject;
	LPDIRECTINPUTDEVICE8	m_pDIKeyboardDevice;

	char					KeyBuffer[256];
};

#endif